package com.txts.road.app.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.txts.road.app.message.model.entity.ContactEntity;
import com.txts.road.app.message.model.query.ContactQuery;
import com.txts.road.app.message.model.vo.ContactVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 联系人Mapper接口
 *
 * @author baoyr
 * @since 2025-07-17 15:01
 */
@Mapper
public interface ContactMapper extends BaseMapper<ContactEntity> {

    /**
     * 获取联系人分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<ContactVO>} 联系人分页列表
     */
    Page<ContactVO> getContactPage(Page<ContactVO> page, ContactQuery queryParams);

}
